import request from '../request'

// 获取收支记录
export const getOrdersLise = params => request.globalRequest(`/aos/api/drugstore/xcx/szList`, 'GET', params)

// 获取已结算记录
export const getClearingLise = params => request.globalRequest(`/aos/api/drugstore/xcx/settleAccountsOverList`, 'GET', params)

// 获取未已结算记录
export const getClearingOffLise = params => request.globalRequest(`/aos/api/drugstore/xcx/noSettleAccountsList`, 'GET', params)

// 获取机构提现记录
export const getWithdrawLise = params => request.globalRequest(`/aos/app/unionPage/withdrawList`, 'GET', params)

// 机构入驻申请
export const agenciesAdd = data => request.globalRequest(`/aos/drugstore/appAdd`, 'POST', data)

// 机构入驻验证码
export const phoneValidate = data => request.globalRequest(`/aos/drugstore/sms`, 'POST', data)

// 机构端首页信息
export const getIndexInfo = () => request.globalRequest(`/aos/drugstore/detailInfo`, 'GET', {})

// 机构信息
export const getInfoAll = () => request.globalRequest(`/aos/drugstore/drDetail`, 'GET', {})

// 机构端首页健康金信息
export const getHealthyMoney = () => request.globalRequest(`/aos/distribute/info/countInfo`, 'GET',{})

// 获取机构状态
export const getAgenciesState = () => request.globalRequest(`/aos/drugstore/getStatus`, 'GET',{})

// 机构提现
export const agenciesWithdraw = data => request.globalRequest(`/aos/app/unionPage/withdrawApply`, 'POST', { data : data })

// 机构 - 邀请列表
export const getInviteList = params => request.globalRequest(`/aos/distribute/info/registerList`, 'GET', { params : params })

// 机构 - 编辑
export const getEdit = data => request.globalRequest(`/aos/drugstore/appEdit`, 'POST', { data : data })

// 核销订单
export const orderVerify = params => request.globalRequest(`aos/api/commodityOrder/verification`, 'POST', params)
